#include "BlogTextEdit.h"

BlogTextEdit::BlogTextEdit(QWidget *parent) : QTextEdit(parent) {}

void BlogTextEdit::insertFromMimeData(const QMimeData *source)
{
    if (source->hasText())
    {
        // 插入纯文本，忽略格式和图片
        this->insertPlainText(source->text());
    }
}